package com.cy.myblog.aspect;

import org.aspectj.lang.JoinPoint;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2015/7/5.
 */
@Component("logAspect")
public class LogAspect {

    public void logStart(JoinPoint jp){
        //得到执行的对象
        System.out.println(jp.getTarget());
        //得到执行的方法
        System.out.println(jp.getSignature().getName());
        Logger.info("加入了Aspect切面");
    }
}
